package com.future.cb.web.controller;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.future.cb.dao.entity.SysUser;
import com.future.cb.service.SysUserService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Transactional
@RestController
@RequestMapping("/user")
public class SysUserController {
	@Autowired
	private SysUserService sysUserService;
	
	@RequestMapping("/findAllUsers")
	public List<SysUser> findAllUsers() {
		return this.sysUserService.findAllUsers();
	}
	
	@RequestMapping("/findUserById")
	public SysUser findUserById(String id) {
		return this.sysUserService.findUserById(id);
	}
}
